Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 5 - Menu Manager Reference / Menu Manager Functions
Manipulating and Accessing Menu Item Characteristics /


SetMenuItemCommandID

NEW WITH THE APPEARANCE MANAGER

Sets a menu item's command ID.

pascal OSErr SetMenuItemCommandID (
                     MenuHandle inMenu,
                     SInt16 inItem,
                     UInt32 inCommandID);
inMenu
The handle to the menu structure of the menu item for which you wish to set a command ID.
inItem
An integer representing the item number of the menu item for which you wish to set a command ID.
inCommandID
An integer representing the command ID that you wish to set.
function result
A result code; see "Result Codes".
DISCUSSION
You can use a menu item's command ID as a position-independent method of signalling a specific action in an application.

SEE ALSO
"Appearance Manager Gestalt Selector Constants".

GetMenuItemCommandID.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998